Convert all pending X events in _gdk_events_queue
authorAlexander Larsson <alexl@redhat.com>
Fri, 23 Jan 2009 12:15:04 +0000 (13:15 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:25 +0000 (10:15 +0200)
If we only convert the first then motion hint emulation won't
work since we don't see the next motion even until we've
fully handled this one.

However, this changes a behaviour that has been like this since
the mists of time. I don't know if it could cause other issues.
I haven't seen any yet though.

gdk/x11/gdkevents-x11.c

index de7e5e470bb9a6d861507ed28c2f57790ebd1831..ebe85734a63438958d50186acda15693177cc84a 100644 (file)
@@ -2326,7 +2326,7 @@ _gdk_events_queue (GdkDisplay *display)
   XEvent xevent;
   Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
 
-  while (!_gdk_event_queue_find_first(display) && XPending (xdisplay))
+  while (XPending (xdisplay))
     {
       XNextEvent (xdisplay, &xevent);